package com.ss.android.caijing.stepcounterlib.log;

import android.util.Log;

/**
 * Created by zdh on 2017/11/10.
 */

public class SSLog {
    private static boolean isDebug = true;
    private static final int INVALID = -1;

    public static int v(String tag, String msg) {
        if (isDebug) {
            return Log.v(tag, msg);
        } else {
            return INVALID;
        }
    }

    public static int v(String tag, String msg, Throwable tr) {
        if (isDebug) {
            return Log.v(tag, msg, tr);
        } else {
            return INVALID;
        }
    }

    public static int d(String tag, String msg) {
        if (isDebug) {
            return Log.d(tag, msg);
        } else {
            return INVALID;
        }
    }

    public static int d(String tag, String msg, Throwable tr) {
        if (isDebug) {
            return Log.d(tag, msg, tr);
        } else {
            return INVALID;
        }
    }

    public static int i(String tag, String msg) {
        if (isDebug) {
            return Log.i(tag, msg);
        } else {
            return INVALID;
        }
    }

    public static int i(String tag, String msg, Throwable tr) {
        if (isDebug) {
            return Log.i(tag, msg, tr);
        } else {
            return INVALID;
        }
    }

    public static int w(String tag, String msg) {
        if (isDebug) {
            return Log.w(tag, msg);
        } else {
            return INVALID;
        }
    }

    public static int w(String tag, String msg, Throwable tr) {
        if (isDebug) {
            return Log.w(tag, msg, tr);
        } else {
            return INVALID;
        }
    }

    public static int w(String tag, Throwable tr) {
        if (isDebug) {
            return Log.w(tag, tr);
        } else {
            return INVALID;
        }
    }

    public static int e(String tag, String msg) {
        if (isDebug) {
            return Log.e(tag, msg);
        } else {
            return INVALID;
        }
    }

    public static int e(String tag, String msg, Throwable tr) {
        if (isDebug) {
            return Log.e(tag, msg, tr);
        } else {
            return INVALID;
        }
    }
}
